<template>
    <el-select v-model="modelValue">
        <el-option v-for="item in selectItem" :key="item.Id" :label="item.BusinessName" :value="item.Id"></el-option>
    </el-select>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import businessInfoapi from '../api/businessInfoapi';

const modelValue = defineModel()

const selectItem = ref<any>()

businessInfoapi.getAll()
.then((res:any)=>{
    selectItem.value = res.data
})
</script>

<style scoped>

</style>